package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NursingLevelMapper {

    //护理等级分页查询
    Page<NursingLevelVo> selectList(@Param("name") String name,
                                    @Param("status") Integer status);

    //新增护理等级
    void insertNursingLevel(NursingLevel nursingLevel);

    //根据id查询护理等级
    NursingLevel selectById(@Param("id") Long id);

    //更新护理等级
    void updateNursingLevel(NursingLevel nursingLevel);

    //删除护理等级
    void deleteNursingLevel(@Param("id") Long id);
}
